package me.zhengjie.minbearwcs.dao.shifting.impl;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;
import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.shifting.inf.ShiftingTaskRecordDao;
import me.zhengjie.minbearwcs.dao.shifting.inf.ShiftingTaskRecordHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.shifting.ShiftingTaskRecordHistoryMapper;
import me.zhengjie.minbearwcs.entity.Mapper.shifting.ShiftingTaskRecordMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.shifting.ShiftingTaskRecord;
import me.zhengjie.minbearwcs.entity.PO.wcs.shifting.history.ShiftingTaskRecordHistory;
import me.zhengjie.minbearwcs.entity.PO.wcs.shifting.status.ShiftingRecordStatus;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class ShiftingTaskRecordHistoryDaoImpl implements ShiftingTaskRecordHistoryDao {

    private final ShiftingTaskRecordHistoryMapper mapper;

    @Override
    public boolean insert(ShiftingTaskRecordHistory shiftingTaskRecordHistory) {
        return mapper.insert(shiftingTaskRecordHistory) == 1;
    }

}
